package reflect;

/**
 * JDK5之后推出了一个特性:边长参数
 */
public class ArgsDemo {
    public static void main(String[] args) {
        dosome();
        dosome("1");
        dosome("1","1","1","1","1","1","1","1","1","1","1","1");
    }

    public static void dosome(String ...s ){//(String ... s)为一个String数组
                                  //也称为可变长参数   可变长参只能在最后一个
        System.out.println(s.length);

    }
}
